<?php
/**
 * @Author:      西北民大杨志宏
 * @DateTime:    2015-12-15 00:58:30
 * @Description: 自定义控制器类
 */
defined('BASEPATH') OR exit('No direct script access allowed');

class MY_Controller extends CI_Controller
 {

 	// // 定义属性
 	// public $cookie_file;
	/**
	 * 构造方法
	 */
	public function __construct()
	{
		// 继承父类构造方法
		parent::__construct();
		// 装载相关数据模型
		$this->load->model('User_model','User');
		$this->load->model('KnowledgePoint_model','Kp');
		// $this->load->model( 'Symbol' );
		// $this->load->model( 'Curlmodel' );
		// $this->cookie_file = $this->getCookie('http://xueqiu.com/S/SZ300059');
	}

	/**
	 * [loadview 将头部、底部脚本统一装载]
	 * @param  [type] $view [description]
	 * @param  [type] $data [description]
	 * @return [type]       [description]
	 */
	public function loadview($view = '', $data = array())
	{
		$this->load->view('head.html');
		$this->load->view( $view, $data );
		// $this->load->view('foot');
	}



}
